/*
 * ExpotentialGenerator.h
 *
 *  Created on: 25-10-2013
 *      Author: Tomasz Lis
 */

#include "omnetpp.h"
#include "packet_m.h"
#ifndef EXPOTENTIALGENERATOR_H_
#define EXPOTENTIALGENERATOR_H_

class ExpotentialGenerator : public cSimpleModule {
public:
    int id;
    int lastPacketId;
    int lastSessionId;
    int destinationId;
    int classPriority;

    cLongHistogram delays;
    cOutVector delaysVector;

    int mean;
    simtime_t timeUnit;
    simtime_t lastPacketTime;
    ExpotentialGenerator();
    virtual ~ExpotentialGenerator();
    void initialize();
    virtual void finish();
    virtual void handleMessage(cMessage *message);
    Packet*  generatePacket(int dst, int classPriority);
};

Define_Module(ExpotentialGenerator);

#endif /* EXPOTENTIALGENERATOR_H_ */
